package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Task entity. @author MyEclipse Persistence Tools
 */

public class Task implements java.io.Serializable {

	// Fields

	private Integer taskId;
	private Area areaByEndplace;
	private Goods goods;
	private Company companyByReceiveCompany;
	private Area areaByStartplace;
	private Company companyByTaskCompany;
	private Date taskDate;
	private Date endDate;
	private Short level;
	private String taskType;
	private String meteringWay;
	private Float number;
	private Float price;
	private Float actualCost;
	private Float receivedCost;
	private String paymentWay;
	private Short haulDistance;
	private Set companytasks = new HashSet(0);
	private Set carbusinesses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Task() {
	}

	/** full constructor */
	public Task(Area areaByEndplace, Goods goods, Company companyByReceiveCompany, Area areaByStartplace,
			Company companyByTaskCompany, Date taskDate, Date endDate, Short level, String taskType, String meteringWay,
			Float number, Float price, Float actualCost, Float receivedCost, String paymentWay, Short haulDistance,
			Set companytasks, Set carbusinesses) {
		this.areaByEndplace = areaByEndplace;
		this.goods = goods;
		this.companyByReceiveCompany = companyByReceiveCompany;
		this.areaByStartplace = areaByStartplace;
		this.companyByTaskCompany = companyByTaskCompany;
		this.taskDate = taskDate;
		this.endDate = endDate;
		this.level = level;
		this.taskType = taskType;
		this.meteringWay = meteringWay;
		this.number = number;
		this.price = price;
		this.actualCost = actualCost;
		this.receivedCost = receivedCost;
		this.paymentWay = paymentWay;
		this.haulDistance = haulDistance;
		this.companytasks = companytasks;
		this.carbusinesses = carbusinesses;
	}

	// Property accessors

	public Integer getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public Area getAreaByEndplace() {
		return this.areaByEndplace;
	}

	public void setAreaByEndplace(Area areaByEndplace) {
		this.areaByEndplace = areaByEndplace;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Company getCompanyByReceiveCompany() {
		return this.companyByReceiveCompany;
	}

	public void setCompanyByReceiveCompany(Company companyByReceiveCompany) {
		this.companyByReceiveCompany = companyByReceiveCompany;
	}

	public Area getAreaByStartplace() {
		return this.areaByStartplace;
	}

	public void setAreaByStartplace(Area areaByStartplace) {
		this.areaByStartplace = areaByStartplace;
	}

	public Company getCompanyByTaskCompany() {
		return this.companyByTaskCompany;
	}

	public void setCompanyByTaskCompany(Company companyByTaskCompany) {
		this.companyByTaskCompany = companyByTaskCompany;
	}

	public Date getTaskDate() {
		return this.taskDate;
	}

	public void setTaskDate(Date taskDate) {
		this.taskDate = taskDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Short getLevel() {
		return this.level;
	}

	public void setLevel(Short level) {
		this.level = level;
	}

	public String getTaskType() {
		return this.taskType;
	}

	public void setTaskType(String taskType) {
		this.taskType = taskType;
	}

	public String getMeteringWay() {
		return this.meteringWay;
	}

	public void setMeteringWay(String meteringWay) {
		this.meteringWay = meteringWay;
	}

	public Float getNumber() {
		return this.number;
	}

	public void setNumber(Float number) {
		this.number = number;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Float getActualCost() {
		return this.actualCost;
	}

	public void setActualCost(Float actualCost) {
		this.actualCost = actualCost;
	}

	public Float getReceivedCost() {
		return this.receivedCost;
	}

	public void setReceivedCost(Float receivedCost) {
		this.receivedCost = receivedCost;
	}

	public String getPaymentWay() {
		return this.paymentWay;
	}

	public void setPaymentWay(String paymentWay) {
		this.paymentWay = paymentWay;
	}

	public Short getHaulDistance() {
		return this.haulDistance;
	}

	public void setHaulDistance(Short haulDistance) {
		this.haulDistance = haulDistance;
	}

	public Set getCompanytasks() {
		return this.companytasks;
	}

	public void setCompanytasks(Set companytasks) {
		this.companytasks = companytasks;
	}

	public Set getCarbusinesses() {
		return this.carbusinesses;
	}

	public void setCarbusinesses(Set carbusinesses) {
		this.carbusinesses = carbusinesses;
	}

}